// From raw data to the main dataset 
do `"program/0_data_processing.do"'

// merge main dataset with physician group identifiers
do `"program/1_data_merge.do"'

// summary statisitcs 
do `"program/2_summary_stats.do"'

// estimate denial probabilities to construct continuation values
do `"program/3_denial_probabilities.do"'

// estimate stopping probabilities to construct continuation values
do `"program/4_stop_probabilities.do"'

// estimate value function for each resubmission option
do `"program/5_value_function_computation.do"'

// estimate resubmission costs via maximum likelihood
do `"program/6_model_estimation.do"'

// compute CIP and tau values
do `"program/7_compute_CIP.do"'

// generate model exhibits 
do `"program/8_model_exhibits.do"'

// estimate indices for tau and log(pi) 
do `"program/9_indices.do"'

// cross-state regressions
do `"program/10_regression_analysis_cross_state.do"'

// mover regressions and event study graphs 
do `"program/11_regression_analysis_mover.do"'

// prepare .csv file to be used in Matlab for counterfactuals
do `"program/12_prepare_counterfactuals.do"'


** additional exhibits:
// figure 2 -- variation in the resubmission probability, denial probability by line item amount 
do `"program/Figure_2.do"'

// table 5 -- model table 
do `"program/Table_5.do"'

// figure 4 -- realized resubmission costs  
do `"program/Figure_4.do"'

// figure 6 -- fee vs. cip indices for medicaid and medicare 
do `"program/Figure_6.do"'

** appendix material:
// appendix tables and graphs 
do `"program/Appendix.do"'
